package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品分类对象 super_category
 * 
 * @author xjf
 * @date 2025-08-12
 */
public class SuperCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 商品分类表id */
    @Excel(name = "商品分类表id")
    private Long id;

    /** 父级分类id */
    @Excel(name = "父级分类id")
    private Long parentId;

    /** 父级分类名称 */
    @Excel(name = "父级分类名称")
    private String parentName;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String name;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 分类描述 */
    @Excel(name = "分类描述")
    private String description;

    /** 商品分类图标 */
    @Excel(name = "商品分类图标")
    private String image;

    /** 是否删除 0 正常 1删除 */
    private Long del;


    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("sort", getSort())
            .append("description", getDescription())
            .append("image", getImage())
            .append("del", getDel())
            .toString();
    }
}
